
import { GetTicketWorksList } from "~/api";

export const useContent = () => {
    const tabList = ref([
        {
            label: "我的门票",
            value: 1,
        },
    ]);
    const tabActive = ref(1);
    const list = ref([]);

    const getList = async () => {
        const res = await GetTicketWorksList();

        if (res.code == 200) {
            list.value = res.data;
        }
    }

    return {
        tabList,
        tabActive,
        list,

        getList
    }
}